﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Chinaer.Web
{
    public partial class DingDanStatus : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void btnAdd_Click(object sender, EventArgs e)
        {
            var result = CommonService.GetChinaerService.AddDingDanStatus(new DTO.DingDanStatusDTO()
              {
                  CreateTime = DateTime.Now,
                  IsDelete = false,
                  IsUse = true,
                  Name = this.txtName.Text.Trim()
              });
            Response.Write(result);
            List<DTO.DingDanStatusDTO> list = CommonService.GetChinaerService.GetAllDingDanStatus("");
            this.gvList.DataSource = list;
            this.gvList.DataBind();
        }
    }
}